from django.urls import path
from apps.users.views import UsernameCountView,CellphoneCountView,RegisterView,AddressCreateView
from apps.users.views import LoginView,LogoutView,UserCenterView,EmailView,EmailVerificationView
from apps.users.views import AddressesView,UserHistoryView



urlpatterns = [
    path('usernames/<username>/count/',UsernameCountView.as_view()),
    path('phonenums/<phonenum>/cpint/',CellphoneCountView.as_view()),
    path('register/',RegisterView.as_view()),
    path('login',LoginView.as_view()),
    path('logout',LogoutView.as_view()),
    path('info/',UserCenterView.as_view()),
    path('emails/',EmailView.as_view()),
    path('emails/verification/', EmailVerificationView.as_view()),
    path('addresses/create/',AddressCreateView.as_view()),
    path('addresses/',AddressesView.as_view()),
    path('browse_histories/',UserHistoryView.as_view()),

]

